package com.yanqu.road.entity.activity.gourdplant;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_u_activity_gourd_plant_user_data")
public class GourdPlantUserData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "积分")
    private long score;

    @FieldTypeAnnotation(desc = "当前组合")
    private int combId;

    @FieldTypeAnnotation(desc = "连心个数")
    private int lianXinNum;

    @FieldTypeAnnotation(desc = "当前组合-结果")
    private List<GourdPlantElement> combElement = new ArrayList<>();

    @FieldTypeAnnotation(desc = "当前组合-乱序")
    private List<Integer> combItems = new ArrayList<>();

    @FieldTypeAnnotation(desc = "当前组合进度-次数")
    private int combTimes;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        if(this.score != score) {
            this.score = score;
            setUpdateOption();
        }
    }

    public int getCombId() {
        return combId;
    }

    public void setCombId(int combId) {
        if(this.combId != combId) {
            this.combId = combId;
            setUpdateOption();
        }
    }

    public int getLianXinNum() {
        return lianXinNum;
    }

    public void setLianXinNum(int lianXinNum) {
        if(this.lianXinNum != lianXinNum) {
            this.lianXinNum = lianXinNum;
            setUpdateOption();
        }
    }

    public List<GourdPlantElement> getCombElement() {
        return combElement;
    }

    public void setCombElement(List<GourdPlantElement> combElement) {
        this.combElement = combElement;
        setUpdateOption();
    }

    public List<Integer> getCombItems() {
        return combItems;
    }

    public void setCombItems(List<Integer> combItems) {
        this.combItems = combItems;
        setUpdateOption();
    }

    public int getCombTimes() {
        return combTimes;
    }

    public void setCombTimes(int combTimes) {
        if(this.combTimes != combTimes) {
            this.combTimes = combTimes;
            setUpdateOption();
        }
    }
}
